
<a class="btn btn-warning single disabled" onclick="on_design()">
 <i class="${strutil.out(button.icon!,'fa fa-anchor')}"></i> ${button.name}
</a>

<script type="text/javascript">
var on_design = function() {
	var $grid = $('#grid_${object.id}');
	console.log('输入表格');
	console.log($grid);
    var rows = $grid.bootstrapTable('getSelections');
    var num = rows.length;
    if (num == "0") {
    	$.slideMsg("请选择一条记录！");
        return;
    }
    var rowid= rows[0]['id'];
    
    window.open('http://localhost:8080/#/home/' + rows[0].code + "/" + rows[0].name);  
};
</script>